package cn.dgiot.fd.model;

import java.sql.Timestamp;
import java.util.List;

/**
 * [设备升级记录]
 * @author
 *
 */
public class DeviceUpgradeModel extends BaseModel{
	/** id */
	private String id;
	/** 设备id */
	private String iotId;
	/** 升级任务id */
	private String jobId;
	/** 升级状态 */
	private String status;
	/** 版本 */
	private String version;
	/** 创建时间 */
	private Timestamp createTime;
	/** 反馈时间 */
	private Timestamp responseTime;

	private List<String> deviceNames;
	
	public DeviceUpgradeModel() {
		
	}
	
	public DeviceUpgradeModel(String deviceName, String productKey) {
		this.setDeviceName(deviceName);
		this.setProductKey(productKey);
	}
	
	public DeviceUpgradeModel(DeviceUpgradeFlowModel deviceUpgradeFlowModel) {
		this.setJobId(deviceUpgradeFlowModel.getJobId());
		this.setStatus(deviceUpgradeFlowModel.getStatus());
		this.setCreateTime(deviceUpgradeFlowModel.getCreateTime());
		this.setDeviceNames(deviceUpgradeFlowModel.getDeviceNames());
		this.setProductKey(deviceUpgradeFlowModel.getProductKey());
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIotId() {
		return iotId;
	}

	public void setIotId(String iotId) {
		this.iotId = iotId;
	}

	public String getJobId() {
		return jobId;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getResponseTime() {
		return responseTime;
	}

	public void setResponseTime(Timestamp responseTime) {
		this.responseTime = responseTime;
	}

	public List<String> getDeviceNames() {
		return deviceNames;
	}

	public void setDeviceNames(List<String> deviceNames) {
		this.deviceNames = deviceNames;
	}
	
}
